package com.qf.limit.commons.base;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.Date;

@Data
@Accessors(chain = true)
public class BaseEntity {
    //主键
    @TableId(type = IdType.AUTO)
    private Integer id;
    //创建时间
    private Date createTime = new Date();
    //最后一次修改的时间
    private Date updateTime = new Date();
    //状态
    private Integer status = 0;
    //删除标识
    private Integer delFlag = 0;
}
